<div class="modal-header">
    <h3 class="modal-title" ng-if="prize.id">修改奖品</h3>
    <h3 class="modal-title" ng-if="!prize.id">添加奖品</h3>
</div>
<div class="modal-body">
    <form class="form-horizontal">
        <div class="form-group">
            <label class="control-label col-sm-2" for="prizeTitle">奖品类型</label>
            <div class="col-sm-9">
                <input type="text" class="form-control" id="prizeTitle" placeholder="请输入奖品类型" ng-model="prize.title">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-sm-2" for="prizeDescription">奖品说明</label>
            <div class="col-sm-9">
                <input type="text" class="form-control" id="prizeDescription" placeholder="请输入奖品说明"
                       ng-model="prize.description">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-sm-2" for="prizeTotal">奖品数量</label>
            <div class="col-sm-9">
                <input type="number" class="form-control" id="prizeTotal" placeholder="请输入奖品数量" ng-model="prize.total">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-sm-2" for="prizeRisk">中奖几率</label>
            <div class="col-sm-9">
                <div class="input-group">
                    <input type="number" class="form-control" id="prizeRisk" placeholder="请输入中奖几率(1-100)"
                           ng-model="prize.risk">
                    <span class="input-group-addon">%</span>
                </div>
            </div>
        </div>
    </form>
</div>
<div class="modal-footer">
    <button class="btn btn-primary" type="button" ng-click="ok()">OK</button>
    <button class="btn btn-warning" type="button" ng-click="cancel()">Cancel</button>
</div>